import '@/style/public.less'
import '@/style/style.less'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'swiper/css'
import 'swiper/css/pagination'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Directives from '@/directives/index'
import 'echarts-gl'
import 'virtual:uno.css'
import JsonViewer from 'vue3-json-viewer'
import 'vue3-json-viewer/dist/index.css'
import Dialog from '@/components/Dialog/Dialog.vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// import './utils/init' // 初始化微前端
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
app.component('Dialog', Dialog)
app.use(router)
app.use(pinia)
app.use(Directives)
app.use(ElementPlus)
app.use(JsonViewer)

app.mount('#app')
